<%@ page import="hyl.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: Elle
  Date: 2022/6/14
  Time: 9:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- top部分DIV -->
<div id="top">
    <!-- top部分的LogoDIV -->
    <div id="topLogo">
        <!-- topLogo部分的icoDIV -->
        <div id="topLogoIco"> <a href="index.jsp"><img src="images/logo.png" width="177" height="72" alt="" /></a>
        </div>
        <!-- topLogo部分的icoDIV结束 -->
    </div>
    <!-- top部分的LogoDIV结束 -->

    <!-- top部分的文字导航 -->
    <div id="topWordMenu">
        <ul>
            <%
                User loginuser = (User) session.getAttribute("loginuser");
                if(loginuser == null){
            %>
                    <li>已有账号，<a href="login.jsp">请登录</a></li>
                    <li><a href="index.jsp">微博首页</a></li>
                    <li><a href="#">帮助</a></li>
            <%
                }else{
            %>
                    <li><a href="customerindex.html">首页</a></li>
                    <li><a href="mywb.html"><%=loginuser.getNickname()%></a></li>
                    <li><a href="setting.html">设置</a></li>
                    <li><a href="#">帮助</a></li>
                    <li><a href="index.html">退出</a></li>
            <%
                }
            %>
        </ul>
    </div>
    <!-- top部分的文字导航结束 -->
</div>
<!-- top部分结束 -->